package com.example.activitydatasend;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class RecvdataMainActivity extends AppCompatActivity implements View.OnClickListener {
    TextView view;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_recvdata_main);
        findViewById(R.id.button2).setOnClickListener(this);

    }

    /**
     * Called when a view has been clicked.
     *
     * @param v The view that was clicked.
     */
    @Override
    public void onClick(View v) {
        view = findViewById(R.id.textView);
        Bundle bundle = getIntent().getExtras();
        String name = bundle.getString("name");
        String numName = bundle.getString("numName");
        view.setText(name + numName);
        view.setTextSize(50);
    }
}